import Router from 'koa-router'
import GameController from '../controllers/GameController'


export const gameRoute = new Router({
  prefix: '/game'    // 建议每个子路由设置一个url前缀
})
//http://localhost:3000/api/v1/game/

gameRoute.post('/prepare', GameController.prepare)  // 准备/取消准备
gameRoute.post('/ready', GameController.ready)      // 客户端发送整理好牌
gameRoute.post('/call', GameController.callLandlord)// 叫地主/不叫地主
gameRoute.post('/play', GameController.playCards)   // 出牌/不出牌